<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <form action="editor/add.do" method="post">
        <table border="1" width="80%" align="center">
            <tr>
                <td width="10%">标题</td>
                <td width="90%"><input type="text" name="title"></td>
            </tr>
            <tr>
                <td width="10%">作者</td>
                <td width="90%"><input type="text" name="author"></td>
            </tr>
            <tr>
                <td width="10%">内容</td>
                <td width="90%">
                    <!-- 加载编辑器的容器 -->
                    <script id="container" name="content" type="text/plain"></script>
                </td>
            </tr>

            <tr><td colspan="2">
                <button type="submit">提交</button>
            </td></tr>
        </table>
    </form>
   
    <!-- <script type="text/javascript" src="chat/js/jquery-1.12.3.min.js"></script> -->

    <!-- 配置文件 -->
    <script type="text/javascript" src="ueditor/ueditor.config.js"></script>
    <!-- 编辑器源码文件 -->
    <script type="text/javascript" src="ueditor/ueditor.all.js"></script>
    <!-- 实例化编辑器 -->
    <script type="text/javascript">
        var ue = UE.getEditor('container',{
            initialFrameWidth:'100%',
            initialFrameHeight:400
        });
    </script>
</body>
</html>